4c641a6f6ac5f64ae98131c77dfc35feff7063a1,onebusaway-android/src/main/java/org/onebusaway/android/ui/PreferencesActivity.java,PreferencesActivity,onResume,#,158

Before Change



            Preference tripPlan = findPreference(
                    getString(R.string.preference_key_trip_plan_notifications));
            notifications.removePreference(tripPlan);

            if (notifications.getPreferenceCount() == 0) {
                getPreferenceScreen().removePreference(notifications);

After Change


            Preference tripPlan = findPreference(
                    getString(R.string.preference_key_trip_plan_notifications));
            if (notifications != null) {
                notifications.removePreference(tripPlan);

                if (notifications.getPreferenceCount() == 0) {
                    getPreferenceScreen().removePreference(notifications);